AS	=as --gstabs --32
LD	=ld -m elf_i386 -Ttext 0x0000 -g
LDFLAGS	=-s -x #-M
CC	=gcc $(RAMDISK)
CFLAGS	=-m32 -Wall -O -fstrength-reduce -fomit-frame-pointer \
	-finline-functions -nostdinc -I../include -fno-stack-protector \
	-fno-builtin -O0
CPP	=gcc -E -nostdinc -I../include

.c.s:
	$(CC) $(CFLAGS) \
	-nostdinc -Iinclude -S -o $*.s $<
.s.o:
	$(AS) -c -o $*.o $<
.c.o:
	$(CC) $(CFLAGS) \
	-nostdinc -Iinclude -c -o $*.o $<

OBJS  = memory.o

all: mm.o

mm.o: $(OBJS)
	$(LD) -r -o mm.o $(OBJS)
	@sync

clean:
	@rm -f *.o

### Dependencies:
memory.o : memory.c ../include/linux/mm.h 
